package com.dolphin.config.shiro.customToken;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * JwtToken
 *
 * @author dolphin
 */
public class QqToken implements AuthenticationToken {
    /**
     * serialVersionUID
     * long
     */
    private static final long serialVersionUID = 1934231970588104708L;
    private String code;

    public QqToken(String code) {
        this.code = code;
    }

    @Override
    public Object getPrincipal() {
        return code;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public Object getCredentials() {
        return code;
    }
}
